src: fix typo in options.cpp
This commit is contained in:
+8
-1
@@ -57,7 +57,7 @@ void options_t::reset() {
|
|||||||
#endif
|
#endif
|
||||||
o->verbose = 2;
|
o->verbose = 2;
|
||||||
|
|
||||||
opt->o_unix.osabi0 = 3; // 3 == ELFOSABI_LINUX
|
o->o_unix.osabi0 = 3; // 3 == ELFOSABI_LINUX
|
||||||
|
|
||||||
o->win32_pe.compress_exports = 1;
|
o->win32_pe.compress_exports = 1;
|
||||||
o->win32_pe.compress_icons = 2;
|
o->win32_pe.compress_icons = 2;
|
||||||
@@ -76,6 +76,13 @@ options_t *opt = &global_options;
|
|||||||
//
|
//
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
TEST_CASE("options_t::reset") {
|
||||||
|
options_t local_options;
|
||||||
|
options_t *o = &local_options;
|
||||||
|
o->reset();
|
||||||
|
CHECK(o->o_unix.osabi0 == 3);
|
||||||
|
}
|
||||||
|
|
||||||
template <size_t N>
|
template <size_t N>
|
||||||
static inline void test_options(const char *(&a)[N]) {
|
static inline void test_options(const char *(&a)[N]) {
|
||||||
(void) main_get_options((int) (N - 1), ACC_UNCONST_CAST(char **, a));
|
(void) main_get_options((int) (N - 1), ACC_UNCONST_CAST(char **, a));
|
||||||
|
|||||||
Reference in New Issue
Block a user