File: 1002-noninteractive_test.patch

package info (click to toggle)
wxsqlite3 3.4.1~dfsg-9
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 6,004 kB
  • sloc: cpp: 7,915; sh: 5,507; makefile: 367; ansic: 229; php: 9
file content (25 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Make this program non-interactive in order to run it once
 the build has finished.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: not-needed
---
 samples/minimal.cpp |    8 --------
 1 file changed, 8 deletions(-)

--- wxsqlite3.orig/samples/minimal.cpp
+++ wxsqlite3/samples/minimal.cpp
@@ -782,14 +782,6 @@ int Minimal::OnRun()
     cerr << e.GetErrorCode() << ":" << (const char*)(e.GetMessage().mb_str()) << endl;
   }
 
-  // Loop until user enters q or Q
-
-  char c(' ');
-  while (c != 'q' && c != 'Q')
-  {
-    cout << "Press q then enter to quit: ";
-    cin >> c;
-  }
   return 0;
 }