Closed Bug 489481 Opened 15 years ago Closed 15 years ago

Get C++ tests for our C++ helper classes

Categories

(Toolkit :: Storage, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: sdwilsh, Assigned: sdwilsh)

Details

Attachments

(1 file, 1 obsolete file)

I'd like to see our C++ helper objects and our noscript methods tested with some C++ tests.
Summary: Get C++ tests for our noscript and C++ helper classes → Get C++ tests for our C++ helper classes
Attached patch v1.0 (obsolete) — Splinter Review
Also fixes a bug found in mozStorageTransaction.  I don't think anybody was really depending on it's currently useless behavior...
Assignee: nobody → sdwilsh
Status: NEW → ASSIGNED
Whiteboard: [needs review asuth]
Comment on attachment 374341 [details] [diff] [review]
v1.0

I seem to have actually forgotten to request review here, but I'm going to switch to vlad in hopes of freeing up asuth a bit.

vlad - this is mostly new tests and getting rid of an old unused test (that has coverage with xpcshell).  There are some minor code changes that were required due to bugs found while writing the tests.
Attachment #374341 - Flags: review?(vladimir)
Whiteboard: [needs review asuth] → [needs review vlad]
Attachment #374341 - Flags: review?(vladimir) → review?(bugmail)
Whiteboard: [needs review vlad] → [needs review asuth]
Comment on attachment 374341 [details] [diff] [review]
v1.0

but storage1's name was so catchy!

I get warnings like so:
storage_test_harness_tail.h:60: warning: ISO C++ does not support the ‘z’ printf length modifier

Don't know if they will make bsmedberg's warning detector angry at you.  Arguably you could just use an unsigned int for gTotalTests/gPassedTests and lose the 'z' specifier.

nit: s/innterTransaction/innerTransaction/
(no 't')
Attachment #374341 - Flags: review?(bugmail) → review+
(In reply to comment #3)
> I get warnings like so:
> storage_test_harness_tail.h:60: warning: ISO C++ does not support the ‘z’
> printf length modifier
hrm - I didn't get those.  What platform/version of gcc are you on?
Whiteboard: [needs review asuth] → [needs new patch]
(In reply to comment #4)
> hrm - I didn't get those.  What platform/version of gcc are you on?

Ubuntu 9.04 amd64
g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Attached patch v1.1Splinter Review
Addresses review comments.  Also fixed the license block which attributed this to Oracle still (oops).
Attachment #374341 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/9c62b2169f76

Nobody seemed to be too worried about the %z for the printf on irc.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs new patch]
Target Milestone: --- → mozilla1.9.2a1
Yeah, I don't care about the warning either, just that the automated warning tool might get on your case.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: