Commit Graph

4326 Commits

Author SHA1 Message Date
Alexey Sokolov 585b380189 How did I manage to write invalid JOIN test? 2015-11-01 22:26:24 +00:00
Alexey Sokolov 2eb1164f94 AppVeyor: fix fork() on 32 bit cygwin in shell module.
[2015-10-31 22:44:22.609963] (user/test) CLI -> ZNC [PRIVMSG *shell :echo blahblah]
      0 [main] znc 2624 child_info_fork::abort: address space needed by 'simple_away.so' (0x380000) is already occupied
[2015-10-31 22:44:22.618538] (user/test) ZNC -> CLI [:*shell!shell@/home/appveyor PRIVMSG nick :Failed to execute: Resource temporarily unavailable]
2015-11-01 19:15:27 +00:00
Alexey Sokolov 34026d39dc Add test for shell module 2015-10-31 20:36:58 +00:00
Alexey Sokolov 81fd078157 Merge branch '1.6.x' 2015-10-31 11:58:30 +00:00
Alexey Sokolov fa4c01e49d Add missing return statement to dcc module.
It was harmless, but it makes Coverity happier.
2015-10-31 02:30:04 +00:00
Alexey Sokolov 0d8bb7e597 Merge branch '1.6.x'
Conflicts:
	modules/cyrusauth.cpp
	modules/keepnick.cpp
	modules/notes.cpp
2015-10-30 14:56:28 +00:00
Alexey Sokolov 096dc5b320 Fix some unitialized fields in modules.
They are not used before OnLoad anyway, but Coverity will be happier.
2015-10-30 14:52:51 +00:00
Alexey Sokolov c8edabb035 Fix memory leak when reading invalid znc.conf
Found by https://scan.coverity.com/
2015-10-30 14:36:01 +00:00
Alexey Sokolov 5e337647b1 Add test for invalid channel config. 2015-10-30 14:33:46 +00:00
Alexey Sokolov 3f9bc71bb2 Travis: don't build twice for coverity (again) 2015-10-30 01:52:44 +00:00
Alexey Sokolov 3236240029 Merge branch '1.6.x' 2015-10-30 01:18:49 +00:00
Alexey Sokolov f6aa35c6fb Really fix #528
The previous fix (5e6e3be3) left a possibility to use-after-delete,
though it has been much harder to accidentally trigger.

If AddChan(pChan) fails, it deletes pChan, so the new crash was
happening during showing of error message.

Test for this is at master branch: 9777a1a667

Thanks to https://scan.coverity.com/ for pointing at this.
2015-10-30 01:16:29 +00:00
Alexey Sokolov 9777a1a667 Add test for fix of #528 2015-10-30 01:06:39 +00:00
Alexey Sokolov bc77cf795f Show different labels for build badges for travis/appveyor. 2015-10-28 07:40:54 +00:00
Alexey Sokolov 07d9b6efb0 Coverity: don't build ZNC twice, enable verbose make, enable cyrus 2015-10-28 01:01:13 +00:00
Alexey Sokolov 2de6d34ef7 Coverity: Run ./bootstrap.sh before ./configure 2015-10-28 00:06:37 +00:00
Alexey Sokolov 96d9651e9d Setup Coverity scan. 2015-10-28 00:02:19 +00:00
Chris Tyrrel 2b4f3bdac8 Fix recently introduced crash in controlpanel.
See #1051
2015-10-26 00:16:34 +00:00
Alexey Sokolov cf1c56557a Merge pull request #1154 from jreese/server-details
#1147: show new server name when jumping
2015-10-25 20:08:32 +00:00
John Reese 9aff0cd566 See #1147: show new server name when jumping
This updates the connect command in *status to retrieve the next server
object before triggering the jump, thereby allowing it to display the
next server's name rather than a generic message.
2015-10-25 12:41:00 -07:00
Alexey Sokolov 69b031c43c Workaround test failure on cygwin64 2015-10-24 11:56:23 +01:00
Alexey Sokolov db550a3aa0 Add one more small test. 2015-10-20 08:12:34 +01:00
Alexey Sokolov a35a5d3bc8 Test: add typedef for a widely used type 2015-10-20 08:02:46 +01:00
Alexey Sokolov 38288a17e9 Test: slightly more compact output 2015-10-20 08:00:36 +01:00
Alexey Sokolov 3856e7ba2f Merge pull request #1150 from jreese/simple-away
Fix #1133: Add MinClients option to simple_away
2015-10-20 07:37:50 +01:00
Alexey Sokolov 933aa6db0c Add some more tests and fix a bug which sometimes blocked login of users.
This bug wasn't released yet.
cc @jpnurmi
2015-10-18 23:22:32 +01:00
Alexey Sokolov eb450ee885 Test: extract some building blocks to make future tests easier 2015-10-18 22:23:42 +01:00
Alexey Sokolov 1caf6541a0 Test: workaround some Qt's annoyances, and add one more small test. 2015-10-18 21:39:59 +01:00
Alexey Sokolov cc76522063 travis: Trusty has new enough lcov 2015-10-17 15:27:18 +01:00
Alexey Sokolov 90ae78533f Rewrite integration test.
Pexpect was failing too often, even when starting a new process.
Now the test is using Qt and C++.

Fix #772
2015-10-17 15:27:18 +01:00
Alexey Sokolov f3762e8b05 Use termios instead of deprecated getpass().
Also this fixes flaky integration test. Sometimes it hanged because
getpass() sometimes didn't want to believe that it already got the
password from input.
2015-10-16 23:33:11 +01:00
Alexey Sokolov 0d21471b74 Merge branch '1.6.x'
Conflicts:
    .travis.yml
2015-10-16 23:32:37 +01:00
Alexey Sokolov 0022fc6162 Merge pull request #1153 from Mikaela/travis-trusty
.travis.yml: use Ubuntu Trusty & #znc-dev
2015-10-16 20:28:42 +01:00
Mikaela Suomalainen 10d92e539b .travis.yml: use Ubuntu Trusty & #znc-dev
http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/ and
we have been talking forever about moving notifications to #znc-dev and
there have been multiple PRs for that.

-y is apparently needed with trusty or apt hangs forever waiting for
yes/no.
2015-10-16 10:02:59 +03:00
Alexey Sokolov c87a40ac9b Merge pull request #1145 from Zarthus/blockmotd_override
blockmotd: Allow overriding via command
2015-10-16 08:00:03 +01:00
John Reese 8d7ea21998 Add more verbose output when setting/getting MinClients 2015-10-15 11:08:48 -07:00
Jos Ahrens 92b4f92577 blockmotd: Allow overriding via command
Fixes #783
2015-10-15 11:54:14 +02:00
Alexey Sokolov eb6852f58b Merge pull request #1140 from Zarthus/simpleaway-expandstring
Use ExpandString for simple_away, rename %s to %awaytime% to follow ExpandString standards
2015-10-15 09:00:06 +01:00
Alexey Sokolov 3623cf0d45 Merge pull request #1152 from znc/revert-1149-server-details
Revert "Fix #1147: show new server name when jumping"
2015-10-15 08:39:06 +01:00
Alexey Sokolov 44bbde35ee Revert "Fix #1147: show new server name when jumping" 2015-10-15 08:38:02 +01:00
Alexey Sokolov e57f6460a1 Merge pull request #1149 from jreese/server-details
Fix #1147: show new server name when jumping
2015-10-15 08:33:58 +01:00
Alexey Sokolov 87a921d87a Merge pull request #1139 from Zarthus/expandstring-network
Expandstring network, alphabeticize expandstring list
2015-10-15 08:31:50 +01:00
John Reese fdff38f0e6 Fix #1133: Add MinClients option to simple_away
This adds a new option and command to the module, "MinClients", that
specifies the minimum number of clients that must be connected for the
module to considered the user as available.  If fewer clients are
connected than the minimum, the user will be marked away, even if there
are still clients attached.  The default value is "1", which replicates
the existing behavior of the module.

To modify the MinClients value, `/msg *simple_away MinClients [<value>]`
is available.  Running the command without parameters will display the
current value instead of modifying it.
2015-10-12 17:54:17 -07:00
John Reese 5f79f2d01f Fix #1147: show new server name when jumping
This updates the connect command in *status to retrieve the next server
object before triggering the jump, thereby allowing it to display the
next server's name rather than a generic message.
2015-10-12 16:27:01 -07:00
Alexey Sokolov 46f937aa4a Remove test2 for now. Pexpect is broken. 2015-10-10 09:16:34 +01:00
Alexey Sokolov 58fbbaf110 Update Csocket. Close #1146
Fix build when OpenSSL is built without SSLv3.
2015-10-10 08:58:37 +01:00
Jos Ahrens 2c8baa8193 ExpandString %network%, alphabeticize ExpandString list 2015-10-08 21:39:02 +02:00
Alexey Sokolov 1c54550304 AppVeyor: change cygwin mirror. Old one often errored out during download
"download error in unattended_mode: 1 retry remaining."
2015-10-04 23:27:58 +01:00
Alexey Sokolov 8f598273f9 Test: launch ZNC on a config created during --makeconf and connect. 2015-10-03 21:38:18 +01:00
Alexey Sokolov 0750e529c5 Don't print anything from signal handler.
Thread sanitizer doesn't like that.
2015-10-03 19:29:01 +01:00