[parchive2-cvs] library/src/tests/parchive2 test_parchive2.cc,1.15,1.16
Status: Pre-Alpha
Brought to you by:
coppit
|
From: <co...@us...> - 2003-05-07 01:53:33
|
Update of /cvsroot/parchive2/library/src/tests/parchive2
In directory sc8-pr-cvs1:/tmp/cvs-serv6405/src/tests/parchive2
Modified Files:
test_parchive2.cc
Log Message:
- Tried to fix it so that it exits with 1 so that make will detect the
failure. Since Nass is working on this, I'm not going to finish it.
Index: test_parchive2.cc
===================================================================
RCS file: /cvsroot/parchive2/library/src/tests/parchive2/test_parchive2.cc,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** test_parchive2.cc 7 May 2003 01:39:24 -0000 1.15
--- test_parchive2.cc 7 May 2003 01:53:30 -0000 1.16
***************
*** 127,131 ****
--- 127,134 ----
dslice = p.Create_File_Slices(xpointer);
if (!sizeof(dslice))
+ {
cout << "Parchive2:Create_File_Slices: FAILED" << endl;
+ return 1;
+ }
else
cout << "Parchive2:Create_File_Slices: SUCCESS" << endl;
***************
*** 148,152 ****
--- 151,158 ----
pfile = p.Make_Parity_Files("/dummy");
if (!sizeof(pfile))
+ {
cout << "Parchive2:Make_Parity_Files: FAILED" << endl;
+ return 1;
+ }
else
cout << "Parchive2:Make_Parity_Files: SUCCESS" << endl;
***************
*** 162,166 ****
--- 168,175 ----
cout <<"Parchive2:Set_Slice_Size and Get_Slice_Size:SUCCESS"<<endl;
else
+ {
cout <<"Parchive2:Set_Slice_Size and Get_Slice_Size:FAILED"<<endl;
+ return 1;
+ }
***************
*** 213,217 ****
--- 222,229 ----
dpacket = p.Make_Packets_From_Files(Flist);
if (!sizeof(dpacket))
+ {
cout << "Parchive2:Make_Packets_From_Files: FAILED" << endl;
+ return 1;
+ }
else
cout << "Parchive2:Make_Packets_From_Files: SUCCESS" << endl;
***************
*** 253,257 ****
--- 265,274 ----
cout << "Parchive2:Create_Parchive_Files: SUCCESS" << endl;
else
+ {
cout << "Parchive2:Create_Parchive_Files: FAILED" << endl;
+ return 1;
+ }
+
+ return 0;
}
|