diff options
author | Ted Gould <ted@gould.cx> | 2012-04-27 09:43:45 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-04-27 09:43:45 -0500 |
commit | 123a7fec04d313d4d420249ab24a38eb587c3ef7 (patch) | |
tree | 7cb14c98891627b4d09ca708a9d0e1582232ea09 /tests/test-service.cc | |
parent | 1bab86efd3e4637d61e20364c2859982605850b1 (diff) | |
download | ayatana-indicator-session-123a7fec04d313d4d420249ab24a38eb587c3ef7.tar.gz ayatana-indicator-session-123a7fec04d313d4d420249ab24a38eb587c3ef7.tar.bz2 ayatana-indicator-session-123a7fec04d313d4d420249ab24a38eb587c3ef7.zip |
Change the service path to be a define instead of passed on the command line
Diffstat (limited to 'tests/test-service.cc')
-rw-r--r-- | tests/test-service.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc index c3d2471..cb10070 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -36,7 +36,7 @@ class SessionServiceTest: public IndicatorServiceTest virtual ~SessionServiceTest() {} SessionServiceTest(): IndicatorServiceTest(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_OBJECT, - the_executable) { } + INDICATOR_SERVICE_PATH) { } public: virtual void SetUp() { wait_seconds(1); @@ -56,16 +56,3 @@ TEST_F(SessionServiceTest, HelloWorld) ASSERT_TRUE(true); } - -int -main (int argc, char *argv[]) -{ - if (argc < 2) { - fprintf (stderr, "Usage: appname /path/to/indicator-session-service"); - return -1; - } - the_executable = argv[1]; - fprintf (stdout, "executable is '%s'\n", the_executable); - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} |