aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qutil.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-04-04 03:34:45 +0200
committerJay Berkenbilt <ejb@ql.org>2020-04-04 03:39:44 +0200
commit2100b4ce152e9c70b3ce8760112d5a24ead4e52d (patch)
tree0dc298af6870f9635dd4b52b9ec8a528b01e01f6 /libtests/qutil.cc
parent6a4117add996eeaaf330bd700e30380295daab93 (diff)
downloadqpdf-2100b4ce152e9c70b3ce8760112d5a24ead4e52d.tar.zst
Allow qpdf to be built on systems without wchar_t (fixes #406)
Diffstat (limited to 'libtests/qutil.cc')
-rw-r--r--libtests/qutil.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/libtests/qutil.cc b/libtests/qutil.cc
index b8429a44..935cdfc2 100644
--- a/libtests/qutil.cc
+++ b/libtests/qutil.cc
@@ -543,17 +543,6 @@ void rename_delete_test()
assert_no_file("old\xcf\x80.~tmp");
}
-void wmain_test()
-{
- auto realmain = [](int argc, char* argv[]) {
- for (int i = 0; i < argc; ++i) { std::cout << argv[i] << std::endl; } return 0; };
- wchar_t* argv[3];
- argv[0] = const_cast<wchar_t*>(L"ascii");
- argv[1] = const_cast<wchar_t*>(L"10 \xf7 2 = 5");
- argv[2] = const_cast<wchar_t*>(L"qwww\xf7\x03c0");
- QUtil::call_main_from_wmain(3, argv, realmain);
-}
-
int main(int argc, char* argv[])
{
try
@@ -584,8 +573,6 @@ int main(int argc, char* argv[])
hex_encode_decode_test();
std::cout << "---- rename/delete" << std::endl;
rename_delete_test();
- std::cout << "---- wmain" << std::endl;
- wmain_test();
}
catch (std::exception& e)
{