summaryrefslogtreecommitdiff
path: root/tests/unit/echoserver/echoserverprocessmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/echoserver/echoserverprocessmain.cpp')
-rw-r--r--tests/unit/echoserver/echoserverprocessmain.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/unit/echoserver/echoserverprocessmain.cpp b/tests/unit/echoserver/echoserverprocessmain.cpp
index 07010b0b91..5225007617 100644
--- a/tests/unit/echoserver/echoserverprocessmain.cpp
+++ b/tests/unit/echoserver/echoserverprocessmain.cpp
@@ -43,12 +43,9 @@ int main(int argc, char *argv[])
QCoreApplication application(argc, argv);
-
if (application.arguments().count() < 2)
return 1;
- else if (application.arguments().count() == 3)
- *(int*)0 = 0;
- else if (application.arguments().contains("connectionName"))
+ if (application.arguments().contains("connectionName"))
return 0;
EchoClangCodeModelServer echoClangCodeModelServer;