Skip to content
Permalink
Browse files

Tests have to be executed on OE12 whatever the patch level

  • Loading branch information...
gquerret committed Mar 29, 2019
1 parent 3608850 commit e2dc3603dd9891fd4bda047d534cf1b874efe178
@@ -50,7 +50,7 @@ public String getLoadUsersProcedure() {

@Override
public String getLoadSchemaProcedure() {
return "pct/loadSch.p";
return "pct/v12/loadSch.p";
}

@Override
@@ -42,8 +42,10 @@ class rssw.pct.BackupDataCallback inherits rssw.pct.AbstractLoadDataCallback:
if not logger:loadException then backupTable (input ?).
if (decimal(substring(replace(proversion(0), '.', session:numeric-decimal-point), 1, 4)) le 11.6) then
run pct/v11/restoreTableContent.p (this-object:tblName, this-object:bkupFile).
else
else if (decimal(substring(replace(proversion(0), '.', session:numeric-decimal-point), 1, 4)) lt 12) then
run pct/v11/restoreTableContent117.p (this-object:tblName, this-object:bkupFile).
else
run pct/v12/restoreTableContent.p (this-object:tblName, this-object:bkupFile).
end.

end method.
@@ -820,7 +820,7 @@ public void test52() {
// Only work with 11.7+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 6)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 6))
return;
} catch (IOException caught) {
return;
@@ -845,7 +845,7 @@ public void test53() {
// Only work with 11.7+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 6)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 6))
return;
} catch (IOException caught) {
return;
@@ -871,7 +871,7 @@ public void test54() {
// Only work with 11.7+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 6)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 6))
return;
} catch (IOException caught) {
return;
@@ -1174,7 +1174,7 @@ public void test76() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -1198,7 +1198,7 @@ public void test77() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -820,7 +820,7 @@ public void test52() {
// Only work with 11.7+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 6)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 6))
return;
} catch (IOException caught) {
return;
@@ -845,7 +845,7 @@ public void test53() {
// Only work with 11.7+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 6)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 6))
return;
} catch (IOException caught) {
return;
@@ -871,7 +871,7 @@ public void test54() {
// Only work with 11.7+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 6)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 6))
return;
} catch (IOException caught) {
return;
@@ -1190,7 +1190,7 @@ public void test76() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -1214,7 +1214,7 @@ public void test77() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -98,7 +98,7 @@ public void test6() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -131,7 +131,7 @@ public void test7() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -154,7 +154,7 @@ public void test8() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -177,7 +177,7 @@ public void test9() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -192,7 +192,7 @@ public void test13() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;
@@ -213,7 +213,7 @@ public void test14() {
// Only work with 11.3+
try {
DLCVersion version = DLCVersion.getObject(new File(System.getProperty("DLC")));
if (version.getMinorVersion() <= 2)
if ((version.getMajorVersion() == 11) && (version.getMinorVersion() <= 2))
return;
} catch (IOException e) {
return;

0 comments on commit e2dc360

Please sign in to comment.
You can’t perform that action at this time.