File: fix-example-exit-code.patch

package info (click to toggle)
o3dgc 0~20131011-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,248 kB
  • sloc: cpp: 5,142; javascript: 3,530; python: 29; php: 20; sh: 11; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 591 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix help return code in example file
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-05-03
--- a/src/test/src/main.cpp
+++ b/src/test/src/main.cpp
@@ -651,7 +651,7 @@
         std::cout << "\t Encode binary: test_o3dgc -c -i fileName.obj -st binary"<< std::endl;
         std::cout << "\t Encode ascii:  test_o3dgc -c -i fileName.obj -st ascii "<< std::endl;
         std::cout << "\t Decode:        test_o3dgc -d -i fileName.s3d"<< std::endl;
-        return -1;
+        return 0;
     }
 
     std::cout << "----------------------------------------" << std::endl;