0027532: Errors on reading stp-file
authorika <ika@opencascade.com>
Mon, 6 Jun 2016 08:59:06 +0000 (11:59 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 23 Jun 2016 15:14:45 +0000 (18:14 +0300)
The cause of errors is a non alphabetical order of complex entity, which do not affect export.
Move messages to debug mode.
Replace fail by warning.

Correction of test case bugs/vis/bug23153 according to the new behavior

15 files changed:
src/StepData/StepData_StepReaderData.cxx
tests/bugs/modalg_6/bug27341_329
tests/bugs/step/bug2368
tests/bugs/step/bug348_1
tests/bugs/step/bug348_2
tests/bugs/step/bug348_3
tests/bugs/step/bug348_4
tests/bugs/step/bug926
tests/bugs/step/parse.rules [deleted file]
tests/bugs/vis/bug23153
tests/bugs/xde/bug22982
tests/de/parse.rules
tests/xcaf/stp_to_xbf/G7
tests/xcaf/stp_to_xbf/I1
tests/xcaf/stp_to_xbf/I2

index 1691ba2..bcfd329 100644 (file)
@@ -178,16 +178,13 @@ void StepData_StepReaderData::SetRecord (const Standard_Integer num,
          //themults.SetValue(prev,num);
           themults.Bind(prev,num);
           if(thenametypes.FindKey(thetypes.Value(num)).IsLess(thenametypes.FindKey(thetypes.Value(prev)))) {
-         //if (thetypes.Value(num).IsLess(thetypes.Value(prev))) 
-
-//  ERREUR : Type complexe pas en ordre alphabetique. On enregistre.
+      //  Warning: components in complex entity are not in alphabetical order.
            TCollection_AsciiString errm("Complex Type incorrect : ");
            errm.AssignCat(thenametypes.FindKey(thetypes.Value(prev)));
            errm.AssignCat(" / ");
            errm.AssignCat(thenametypes.FindKey(thetypes.Value(num)));
            errm.AssignCat(" ... ");
-           thecheck->AddFail(errm.ToCString(),"Complex Type incorrect : ");
-//  On Affiche a l ecran, le plus de donnees possibles
+#ifdef OCCT_DEBUG
            while (theidents(prev) <= 0) {
              prev --;  if (prev <= 0) break;
            }
@@ -196,6 +193,8 @@ void StepData_StepReaderData::SetRecord (const Standard_Integer num,
              << " -> " << num*100/NbRecords() << " % in File)  ***";
            if (prev > 0) sout << "  Ident #" << theidents(prev);
            sout << "\n" << errm << endl;
+#endif
+      thecheck->AddWarning(errm.ToCString(),"Complex Type incorrect : ");
          }
          break;
        }
index 3313c76..9d5402b 100644 (file)
@@ -1,5 +1,3 @@
-puts "TODO OCC27532 ALL: Error on Record"
-
 puts "============"
 puts "OCC27341"
 puts "============"
index 46dfe0d..8238037 100644 (file)
@@ -1,6 +1,3 @@
-puts "TODO OCC12345 ALL: Error on Record"
-puts "TODO OCC12345 ALL: OCC2368: Error during reading attached IGES file"
-
 puts "============"
 puts "OCC2368"
 puts "============"
index 4e39634..f2ca11c 100755 (executable)
@@ -1,5 +1,3 @@
-puts "TODO OCC12345 ALL: Error on Record"
-
 puts "========"
 puts "OCC205"
 puts "OCC348"
index 48fccea..9c639e3 100755 (executable)
@@ -1,5 +1,3 @@
-puts "TODO OCC12345 ALL: Error on Record"
-
 puts "========"
 puts "OCC205"
 puts "OCC348"
index b6afc89..5a46494 100755 (executable)
@@ -1,5 +1,3 @@
-puts "TODO OCC12345 ALL: Error on Record"
-
 puts "========"
 puts "OCC205"
 puts "OCC348"
index 23c7cc6..d46c1fd 100755 (executable)
@@ -1,5 +1,3 @@
-puts "TODO OCC12345 ALL: Error on Record"
-
 puts "========"
 puts "OCC205"
 puts "OCC348"
index 3573a31..c2d8049 100755 (executable)
@@ -1,4 +1,3 @@
-puts "TODO OCC12345 ALL: Error on Record"
 puts "TODO OCC12345 ALL: Error : OCC926 is WRONG because number of "
 
 puts "================"
diff --git a/tests/bugs/step/parse.rules b/tests/bugs/step/parse.rules
deleted file mode 100644 (file)
index c48aff7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-IGNORE /Error on Record/ message during loading file
index 98bf47e..9f61539 100755 (executable)
@@ -1,4 +1,4 @@
-puts "REQUIRED All: \\*\\*\\*  Error on Record"
+#puts "REQUIRED All: \\*\\*\\*  Error on Record"
 puts "============"
 puts "OCC23153"
 puts "============"
index 37b1644..b21c742 100755 (executable)
@@ -1,5 +1,3 @@
-puts "TODO OCC22982 ALL: Error on Record"
-# errors appear during reading source step file
 pload QAcommands
 
 puts "============"
index 4ac2e98..813616d 100644 (file)
@@ -1,5 +1,4 @@
 FAILED /\bFaulty\b/ error
-IGNORE /Error on Record/ message during loading file
 IGNORE /Software error/ message in tpstat
 IGNORE /Syntax error/ message in data c
 IGNORE /Transfer error/ message in tpstat
index c7fd9df..fadee12 100644 (file)
@@ -1,4 +1,3 @@
-puts "TODO OCC23469 ALL: Error on Record "
 ReadStep D_First [locate_data_file trj3_d1-tc-214.stp]
 set TypeOfFile ""
 set AddToDocument ""
index 3145530..8cfcba0 100644 (file)
@@ -1,4 +1,3 @@
-puts "TODO OCC23469 ALL: Error on Record "
 ReadStep D_First [locate_data_file trj4_d2-tc-214.stp]
 set TypeOfFile ""
 set AddToDocument ""
index 0a3d48b..6074649 100644 (file)
@@ -1,4 +1,3 @@
-puts "TODO OCC23469 ALL: Error on Record "
 ReadStep D_First [locate_data_file trj4_d2-tu-214.stp]
 set TypeOfFile ""
 set AddToDocument ""